@extends('admin.base.index')
@section('content')
    <div class="block-area" id="text-input">
                <h1 class="block-title" style="color:blue">添加商品详情页</h1>
                <form action=' {{ url("/admin/goodspic") }} ' method='post' enctype="multipart/form-data">
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <div class="row">
                        <div class="space-4"></div>
                        <div>
                            <label class="col-sm-3 control-label no-padding-right" for="form-field-1">商品图片(必填):</label>
                            <div class="col-sm-9">
                                <input type="hidden" name="MAX_FILE_SIZE" value="200000"> 
                                <input name="pic" type="file" multiple class="col-xs-10 col-sm-5"/>
                            </div>
                        </div>
                        <div class="col-lg-10">
                            必填：<input name='goodsid' type="text" class="form-control m-b-10" placeholder="请输入商品id">
                        </div>
                        <div class="col-lg-10">
                            <input name='config' type="text" class="form-control m-b-10" placeholder="请输入手机配置">
                        </div>
                        <div class="col-lg-10">
                            <input name='size' type="text" class="form-control m-b-10" placeholder="屏幕尺寸">
                        </div>
                        <div class="col-lg-10">
                            <input name='pixel' type="text" class="form-control m-b-10" placeholder="手机像素">
                        </div>
                        <div class="col-lg-10">
                            <input name='display' type="text" class="form-control m-b-10" placeholder="屏幕显示">
                        </div>
                        <div class="col-lg-10">
                            <input name='network' type="text" class="form-control m-b-10" placeholder="网络配置">
                        </div>
                        <div class="col-lg-10">
                            <input name='mp3' type="text" class="form-control m-b-10" placeholder="多媒体格式">
                        </div>
                        <div class="col-lg-10">
                            <input name='position' type="text" class="form-control m-b-10" placeholder="导航定位">
                        </div>
                        <div class="col-lg-10">
                            <input name='listing' type="text" class="form-control m-b-10" placeholder="包装清单">
                        </div>
                        <div class="col-lg-10">
                            <input name='other' type="text" class="form-control m-b-10" placeholder="其他">
                        </div>
                        <div class='row'>
                            <div class="col-lg-10">
                                <input type='submit' class='btn' value='添加'>&nbsp;&nbsp;&nbsp;&nbsp;
                                <input type="reset" class="btn" value="重置信息">
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
                <!-- 显示验证规则失败时的信息 -->
                @if (count($errors) > 0)
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
    </div>
@stop
